﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace CoPro.Local
{
    class ThreadContentLocal : IContentLocal
    {
        public string LocalAbbreviation
        {
            get
            {
                return ThreadCulture.ToString();
            }
        }

        internal CultureInfo ThreadCulture { get; set; }

        internal ThreadContentLocal(CultureInfo _currentThreadCulture)
        {
            ThreadCulture = _currentThreadCulture;
        }

        /// <summary>
        /// This flag will always be false, because we initialize with the 
        /// ThreadCulture and there won't be a default local.
        /// </summary>
        public bool IsDefault
        {
            get { return false; }
        }
    }
}
